﻿@using BlogEngine.Core
@{
    var title = "博客列表";
    var blogs = Blog.Blogs.Where(b => b.IsActive).ToList();
}
<div class="Widget widget bloglist">
    <h4 class="WidgetHeader widget-header">
        @title
    </h4>
    <div class="WidgetContent widget-content">
        <ul>
            @foreach (var blog in blogs)
            {
            <li>
                <a title="@blog.Name" href="@blog.RelativeWebRoot">@blog.Name</a>
            </li>
            }
        </ul>
    </div>
</div>